<?php
?>
<form action='useradmin' method='post'>
    <center>
<table border=1 style="background-color:pink;">
    <thead>
        <th colspan=2>User Table</th>
    </thead>
    <tr>
        <td><input type=text name='newname' size="15"></td>
        <td style='text-align:center'><input type=submit name='Add' value='Add'></td>
    </tr>
<?
foreach ($users as $item){
    echo '<tr><td>'.$item->name.'</td>';
    echo "<td><input type=submit name=Delete".$item->id." value='Delete'></td></tr>";
}
echo "</table></center></form>";

?>